<html>
<head><meta charset="utf-8"><title>Clippy autofix · clippy · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/index.html">clippy</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Clippy.20autofix.html">Clippy autofix</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="243734306"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Clippy%20autofix/near/243734306" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> UebelAndre <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Clippy.20autofix.html#243734306">(Jun 24 2021 at 02:01)</a>:</h4>
<p>Is there a flag to get clippy to auto fix some things?</p>



<a name="243735305"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Clippy%20autofix/near/243735305" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Clippy.20autofix.html#243735305">(Jun 24 2021 at 02:24)</a>:</h4>
<p>--fix</p>



<a name="243735491"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Clippy%20autofix/near/243735491" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Takayuki Nakata <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Clippy.20autofix.html#243735491">(Jun 24 2021 at 02:29)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust-clippy#automatically-applying-clippy-suggestions">https://github.com/rust-lang/rust-clippy#automatically-applying-clippy-suggestions</a></p>



<a name="243791742"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Clippy%20autofix/near/243791742" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> UebelAndre <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Clippy.20autofix.html#243791742">(Jun 24 2021 at 14:10)</a>:</h4>
<p>Does that work with <code>clippy_driver</code> Or just <code>cargo clippy</code>? (Can test later today)</p>



<a name="243796491"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/257328-clippy/topic/Clippy%20autofix/near/243796491" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> flip1995 <a href="https://rust-lang.github.io/zulip_archive/stream/257328-clippy/topic/Clippy.20autofix.html#243796491">(Jun 24 2021 at 14:44)</a>:</h4>
<p>Only when using <code>cargo clippy</code>. The fix feature is not implemented by Clippy, but by rustfix, which is invoked by cargo when running <code>cargo clippy --fix</code></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>